package com.puao.dao;

import com.puao.bean.BallRecod;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BallRecodMapper {

    public BallRecod selectOne(Integer period);

    public List<BallRecod> selectAll();

    public Integer insertOrUpdate(List<BallRecod> list);

    public List<Map<String,String>> redTotal(@Param("begin") Integer begin, @Param("end") Integer end);

    public List<Map<String,String>> blueTotal(@Param("begin") Integer begin, @Param("end") Integer end);

    public List<Map<String,String>> allTotal(@Param("begin") Integer begin, @Param("end") Integer end);

    public List<Map<String,String>> redOddEven(@Param("begin") Integer begin, @Param("end") Integer end);

    public List<Map<String,String>> blueOddEven(@Param("begin") Integer begin, @Param("end") Integer end);

}
